<?php 
class CBaseFaqs extends CBaseEosPlural {

	public function __construct() {		
		return true;
	}
	
	public static function fetchFaqs( $objDatabase ) {
		$strSql = 'SELECT * FROM `faqs`';
		return parent::fetchResults( $strSql, 'CFaq', $objDatabase );
	}
	
	public static function fetchFaqById( $intId, $objDatabase ) {
		 $strSql = 'SELECT 
						f.* 
					FROM 
						`faqs` AS f 
					WHERE 
						f.`id` = ' . $intId;
		return parent::fetchResult( $strSql, 'CFaq', $objDatabase );
	}
		
}
?>